package com.dldata.devtools30.entity;

import jakarta.persistence.*;

import java.util.Objects;

@Entity
@Table(name = "devt_zbplan_item")
public class DevtZbplanItemEntity {
    private String id;
    private String planid;
    private String plancode;
    private String planzbid;
    private String planzbcode;
    private String planzbname;
    private Integer xh;
    
    @Id
    @Column(name = "id", nullable = false, length = 64)
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Basic
    @Column(name = "planid", nullable = true, length = 256)
    public String getPlanid() {
        return planid;
    }
    
    public void setPlanid(String planid) {
        this.planid = planid;
    }
    
    @Basic
    @Column(name = "plancode", nullable = true, length = 256)
    public String getPlancode() {
        return plancode;
    }
    
    public void setPlancode(String plancode) {
        this.plancode = plancode;
    }
    
    @Basic
    @Column(name = "planzbcode", nullable = true, length = 256)
    public String getPlanzbcode() {
        return planzbcode;
    }
    
    public void setPlanzbcode(String planzbcode) {
        this.planzbcode = planzbcode;
    }
    
    @Basic
    @Column(name = "planzbname", nullable = true, length = 256)
    public String getPlanzbname() {
        return planzbname;
    }
    
    public void setPlanzbname(String planzbname) {
        this.planzbname = planzbname;
    }
    
    @Basic
    @Column(name = "xh", nullable = true)
    public Integer getXh() {
        return xh;
    }
    
    public void setXh(Integer xh) {
        this.xh = xh;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DevtZbplanItemEntity that = (DevtZbplanItemEntity) o;
        return Objects.equals(id, that.id) && Objects.equals(planid, that.planid) && Objects.equals(plancode, that.plancode) && Objects.equals(planzbcode, that.planzbcode) && Objects.equals(planzbname, that.planzbname) && Objects.equals(xh, that.xh);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id, planid, plancode, planzbcode, planzbname, xh);
    }
    
    @Basic
    @Column(name = "planzbid", nullable = true, length = 256)
    public String getPlanzbid() {
        return planzbid;
    }
    
    public void setPlanzbid(String planzbid) {
        this.planzbid = planzbid;
    }
}
